#ifndef HTMLFETCHER_H_
#define HTMLFETCHER_H_
#include <string>
#include <iostream>

#include <curl/curl.h>
#include <curl/types.h>
#include <curl/easy.h>

class HTMLFetcher
{
public:
	HTMLFetcher();
	virtual ~HTMLFetcher();
	int fetchPage(std::string baseUrl,std::string filename);
//	static int writer(char *data, size_t size, size_t nmemb, std::string *buffer)
	
private:
	char errorBuffer[CURL_ERROR_SIZE]; 
	std::string buffer;
};

#endif /*HTMLFETCHER_H_*/
